package com.zhangmeng.tools.ssh;

import org.java_websocket.WebSocket;
import org.springframework.web.socket.WebSocketSession;

import java.io.IOException;

/**
 * @author : 芊芊墨客
 * @version : 1.0
 * @date : 2023-03-13 17:05
 */
public interface SSHService {

    public void initConnection(WebSocket webSocket, String uuid);

    public void recvHandle(String buffer, WebSocket webSocket,String uuid);

    public void sendMessage(WebSocket webSocket, byte[] buffer) throws IOException;

    public void close(WebSocket webSocket,String uuid);
}
